#!/bin/bash
host="localhost:4455"
prefix="/"
id="9e64f9d0-4b3f-11e7-98da-d5ecb0e44da4"
account="1"
token="1"

# curl -d "key=passwd" ${host}/api/sync
curl -d "username=1&password=1" ${host}/login
# curl -d "username=awoo&password=123" ${host}/api/user/signin
# curl -d "username=awoo&password=123" ${host}/api/user/signup
# curl -d "username=awoo&token=123" ${host}$/api/user/signout

# curl -d "account=${account}&token=${token}" ${host}${prefix}/findAll
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/findById
# curl -d "name=admin&account=${account}&token=${token}" ${host}${prefix}/findByName

# curl -d "phone=2345&name=admin&password=123&account=${account}&token=${token}" ${host}${prefix}/add
# curl -d "name=test&id=${id}&password=123&account=${account}&token=${token}" ${host}${prefix}/update
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/delete
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/phydel
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/disable
# curl -d "id=${id}&account=${account}&token=${token}" ${host}${prefix}/enable

# select role_, username_, password_, id_, createdat_, updatedat_, version_, status_ from t_user;
